﻿<%@ Page Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true" CodeBehind="ChangePassword.aspx.cs"
    Inherits="VPN.ChangePassword" Title="无标题页" %>

<asp:Content ID="Content3" ContentPlaceHolderID="main" runat="server">
    <div>
        <table>
            <tr>
                <td>
                    旧密码
                </td>
                <td>
                    <asp:TextBox ID="txtOld" runat="server" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtOld"
                        Display="None" ErrorMessage="请输入旧密码" ValidationGroup="cp"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    新密码
                </td>
                <td>
                    <asp:TextBox ID="txtNew" runat="server" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtNew"
                        Display="None" ErrorMessage="请输入新密码" ValidationGroup="cp"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    重复新密码
                </td>
                <td>
                    <asp:TextBox ID="txtNewAgain" runat="server" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" Display="None"
                        ControlToValidate="txtNewAgain" ErrorMessage="请输入重复密码" ValidationGroup="cp">
                    </asp:RequiredFieldValidator>
                    <asp:CompareValidator ID="CompareValidator1" runat="server" Display="None" ControlToValidate="txtNewAgain"
                        ControlToCompare="txtNew" ErrorMessage="密码和重复密码不一致" ValidationGroup="cp"></asp:CompareValidator>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <asp:Button ID="btnChange" runat="server" Text="修改" OnClick="btnChange_Click" ValidationGroup="cp" />
                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="cp" />
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
